package com.rec.smile.exception;

public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5049480770878284833L;

	private final int code;

	private final String errMsg;

	public BusinessException(int code, String errMsg) {
		super(errMsg);
		this.code = code;
		this.errMsg = errMsg;
	}

	public BusinessException(int code, String errMsg, Throwable cause) {
		super(cause);
		this.code = code;
		this.errMsg = errMsg;
	}

	public int getCode() {
		return code;
	}

	public String getErrMsg() {
		return errMsg;
	}

}
